package com.hckjsec.official.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hckjsec.common.annotation.Excel;
import com.hckjsec.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 公司新闻对象 official_news
 * 
 * @author cyt
 * @date 2021-12-09
 */
public class OfficialNews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 新闻标题 */
    @Excel(name = "新闻标题")
    private String title;

    /** 新闻图片 */
    @Excel(name = "新闻图片")
    private String img;

    /** 新闻描述 */
    @Excel(name = "新闻描述")
    private String newsDescribe;

    /** 新闻内容 */
    @Excel(name = "新闻内容")
    private String content;

    /** 是否置顶 */
    @Excel(name = "是否置顶")
    private String whetherTop;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date releaseTime;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setNewsDescribe(String newsDescribe) 
    {
        this.newsDescribe = newsDescribe;
    }

    public String getNewsDescribe() 
    {
        return newsDescribe;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setWhetherTop(String whetherTop) 
    {
        this.whetherTop = whetherTop;
    }

    public String getWhetherTop() 
    {
        return whetherTop;
    }
    public void setReleaseTime(Date releaseTime) 
    {
        this.releaseTime = releaseTime;
    }

    public Date getReleaseTime() 
    {
        return releaseTime;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptId", getDeptId())
            .append("title", getTitle())
            .append("img", getImg())
            .append("newsDescribe", getNewsDescribe())
            .append("content", getContent())
            .append("whetherTop", getWhetherTop())
            .append("releaseTime", getReleaseTime())
            .append("state", getState())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
